import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-05-25
 * Time: 13:19
 */
public class Test {
    public static void main(String[] args) {
        Random rand=new Random();
        int[] arr=new int[10];
        for (int i = 0; i < 10; i++) {
            arr[i]=rand.nextInt(100);
        }
        for (int i = 0; i < 10; i++) {
            System.out.print(arr[i]+"  ");
        }
        System.out.println(" ");
        int j=0;
        for (int i = 0; i < 10; i++) {
            if(arr[i]%2==0)
                j++;
        }
        System.out.println("偶数有"+j+"个");
        System.out.println("奇数有"+(10-j)+"个");
    }
}
